package com.xunwulian.dubbo.service;

import com.xunwulian.base.dao.CardInfoDao;
import com.xunwulian.base.dao.SmsGprsBalanceDao;
import com.xunwulian.base.entity.CardInfoEntity;
import com.xunwulian.base.entity.SmsGprsBalanceEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/3/13.
 */
@Service
public class InnerGprsSmsService {

    @Autowired
    private SmsGprsBalanceDao smsGprsBalanceDao;

    public InnerGprsSmsService() {
    }

    public SmsGprsBalanceEntity loadByDateMsisdn(String msisdn, String date) {
        return smsGprsBalanceDao.loadByDateMsisdn(msisdn, date);
    }


    public void addCardInfo4Import(SmsGprsBalanceEntity entity) {
        smsGprsBalanceDao.insert4Import(entity);
    }

    public void updateCardInfo4Import(SmsGprsBalanceEntity entity) {
        smsGprsBalanceDao.update4Import(entity);
    }
}
